from django.contrib.auth.forms import UserCreationForm, UsernameField
from django.forms import ModelForm

from .models import User


class RegisterForm(UserCreationForm):
    class Meta(UserCreationForm.Meta):
        model = User
        fields = ('email','gender','username')

class UserDetailForm(ModelForm):
    class Meta:
        model = User
        fields = ('nickname', 'mobile', 'signature', 'avatar')